
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

   <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
     <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
       #ProvinceT tbody tr:nth-child(odd){background:#f7f3f7 }
        .checkbox-inline input[type=checkbox],.radio-inline input[type=radio] {
    margin-top: 4px;
}

    </style>
</head>

<body style="padding:3px;">
    <!-- 标题 -->
    <div class="page-heade">
        <h2 class="title_color text-center">省份营销费用报表</h2>
    </div>
    <!-- 标题 -->
    <div>
    <form action="" id="f1" method="post"  class="form-inline">
      <table class="tab-content table-bordered  table" border="1" style="margin-bottom:1px">
          <tr>
          <td>
            <select name="cid" id="cid" class="select form-control">
                 {volist name="cainian" id="c"}
                  <option value="{$c.id}" {if $cid==$c.id} selected {/if}>{$c.title}</option>
                 {/volist}
          </select>
			</td>
      </tr>
      <tr id="province">
          <td>
            <div class="form-group">
              {volist name="sheng" id="s"}
                   <span class="checkDiv">
                      <label class="checkbox-inline" for="Anhui">
                    <input type="checkbox" class="sheng" name="sid[]" {if in_array($s.id,$srr)} checked{/if} value="{$s.id}">{$s.title}
                </label>
                </span>
              {/volist}
               
              
                  <button class="btn btn-info query" type="button">查询</button>
                 <button class="btn-info btn" type="button" id="checkAll">全选</button>
            </div>
          </td>
      </tr>
      </table>
   
     <div class="padding-10 text-left font-bold">
        省区决策依据
     </div>
     <table class="table-bordered table bud_hei" id="ProvinceT">
        <tr class="info">
          <th class="text-center">省份名</th>
          <th class="text-center">&nbsp;</th>
         {volist name="kaohe2" id="k"}
          <th class="text-center">{$k.title}</th>
         {/volist}
          <th class="text-center">合计</th>
        </tr>
        <tbody style="border:0">
          {volist name="sarr" id="s"}
            <tr><td class="text-center" rowspan="9">{$s.title}</td><td class="text-center">预计销售目标(元)</td>
            {volist name="$s.yjxl" id="y"}
            <td class="ObjectNum">{$y}</td>
            {/volist}

            <td class="trTotal">{$s.zyjxl}</td></tr>
            <tr><td class="text-center">预计销售预算(元)</td>
             {volist name="$s.yjfy" id="y"}
            <td class="ObjectNum">{$y}</td>
            {/volist}

            <td class="trTotal">{$s.zyjfy}</td>
            </tr>
            <tr><td class="text-center">实际销售达成(元)</td>
               {volist name="$s.xldc" id="y"}
            <td class="ObjectNum">{$y}</td>
            {/volist}

            <td class="trTotal">{$s.zxldc}</td>
            </tr>
            <tr><td class="text-center">实际费用申请(元)</td> 
            {volist name="$s.fysq" id="y"}
            <td class="ObjectNum">{$y}</td>
            {/volist}

            <td class="trTotal">{$s.zfysq}</td>
            </tr>
            <tr><td class="text-center">预计费用率</td>
              {volist name="$s.yjfyl" id="y"}
            <td >{if $y>0} <span class="ObjectNum">{$y}</span>%{else/}-{/if}</td>
            {/volist}

            <td class="trTotal">{if $s.zyjfyl>0} <span class="ObjectNum">{$s.zyjfyl}</span>%{else/}-{/if}</td>
            </tr>

            <tr><td class="text-center">实际费用率</td>
               {volist name="$s.sjfyl" id="y"}
            <td >{if $y>0} <span class="ObjectNum">{$y}</span>%{else/}-{/if}</td>
            {/volist}

            <td class="trTotal">{if $s.zsjfyl>0} <span class="ObjectNum">{$s.zsjfyl}</span>%{else/}-{/if}</td>
            </tr>

            <tr><td class="text-center">实际达成率</td>
                 {volist name="$s.dcl" id="y"}
            <td >{if $y>0} <span class="ObjectNum">{$y}</span>%{else/}-{/if}</td>
            {/volist}

            <td class="trTotal">{if $s.zdcl>0} <span class="ObjectNum">{$s.zdcl}</span>%{else/}-{/if}</td>
            </tr>
            <tr><td class="text-center">实际可使用费用</td>
            {volist name="$s.ky" id="y"}
            <td class="ObjectNum">{$y}</td>
            {/volist}

            <td class="trTotal">{$s.zky}</td>
            </tr>
            <tr><td class="text-center">费用使用比例</td>
               {volist name="$s.bili" id="y"}
            <td >{if $y>0} <span class="ObjectNum">{$y}</span>%{else/}-{/if}</td>
            {/volist}

            <td class="trTotal">{if $s.zbili>0} <span class="ObjectNum">{$s.zbili}</span>%{else/}-{/if}</td>
            </tr>
          {/volist}
        </tbody>
     </table>
</form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
     <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
      <script src="__STATIC__/layout/js/common.js"></script>
    <script>
       $(document).ready(function(){
            var $ObjectNum =$(".ObjectNum");
               toNum($ObjectNum);
             });

        /*省份全选*/
           $("#checkAll").click(function(){
      
               $(".sheng").prop("checked",true);
           })

       $(".query").click(function(){
          document.getElementById("f1").submit()
       })
    </script>
</body>

</html>
